// .husky/common.sh
###
 # @Description: 
 # @Version: 2.0
 # @Autor: wangmiao
 # @Date: 2022-09-16 16:41:12
 # @LastEditors: wangmiao
 # @LastEditTime: 2022-09-16 16:41:43
### 

command_exists () {
  command -v "$1" >/dev/null 2>&1
}

if command_exists winpty && test -t 1; then
  exec < /dev/tty
fi